package com.yltrcc.blog.generate.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName blog_article
 */
@TableName(value ="blog_article")
public class BlogArticle implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 发表用户
     */
    private Integer userId;

    /**
     * 文章内容html格式
     */
    private String articleContent;

    /**
     * 文章内容Markdown格式
     */
    private String articleContentMd;

    /**
     * 发布时间
     */
    private Date articleNewstime;

    /**
     * 文章状态 0已发布1草稿2回收站
     */
    private Integer articleStatus;

    /**
     * 文章摘要
     */
    private String articleSummary;

    /**
     * 略缩图
     */
    private String articleThumbnail;

    /**
     * 文章标题
     */
    private String articleTitle;

    /**
     * 文章类型0原创1转载
     */
    private Integer articleType;

    /**
     * post文章 page页面
     */
    private String articlePost;

    /**
     * 是否开启评论 0开启1不开启
     */
    private Integer articleComment;

    /**
     * 文章最后修改时间
     */
    private Date articleUpdatetime;

    /**
     * 文章路径
     */
    private String articleUrl;

    /**
     * 访问量统计
     */
    private Long articleViews;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 发表用户
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 发表用户
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 文章内容html格式
     */
    public String getArticleContent() {
        return articleContent;
    }

    /**
     * 文章内容html格式
     */
    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent;
    }

    /**
     * 文章内容Markdown格式
     */
    public String getArticleContentMd() {
        return articleContentMd;
    }

    /**
     * 文章内容Markdown格式
     */
    public void setArticleContentMd(String articleContentMd) {
        this.articleContentMd = articleContentMd;
    }

    /**
     * 发布时间
     */
    public Date getArticleNewstime() {
        return articleNewstime;
    }

    /**
     * 发布时间
     */
    public void setArticleNewstime(Date articleNewstime) {
        this.articleNewstime = articleNewstime;
    }

    /**
     * 文章状态 0已发布1草稿2回收站
     */
    public Integer getArticleStatus() {
        return articleStatus;
    }

    /**
     * 文章状态 0已发布1草稿2回收站
     */
    public void setArticleStatus(Integer articleStatus) {
        this.articleStatus = articleStatus;
    }

    /**
     * 文章摘要
     */
    public String getArticleSummary() {
        return articleSummary;
    }

    /**
     * 文章摘要
     */
    public void setArticleSummary(String articleSummary) {
        this.articleSummary = articleSummary;
    }

    /**
     * 略缩图
     */
    public String getArticleThumbnail() {
        return articleThumbnail;
    }

    /**
     * 略缩图
     */
    public void setArticleThumbnail(String articleThumbnail) {
        this.articleThumbnail = articleThumbnail;
    }

    /**
     * 文章标题
     */
    public String getArticleTitle() {
        return articleTitle;
    }

    /**
     * 文章标题
     */
    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    /**
     * 文章类型0原创1转载
     */
    public Integer getArticleType() {
        return articleType;
    }

    /**
     * 文章类型0原创1转载
     */
    public void setArticleType(Integer articleType) {
        this.articleType = articleType;
    }

    /**
     * post文章 page页面
     */
    public String getArticlePost() {
        return articlePost;
    }

    /**
     * post文章 page页面
     */
    public void setArticlePost(String articlePost) {
        this.articlePost = articlePost;
    }

    /**
     * 是否开启评论 0开启1不开启
     */
    public Integer getArticleComment() {
        return articleComment;
    }

    /**
     * 是否开启评论 0开启1不开启
     */
    public void setArticleComment(Integer articleComment) {
        this.articleComment = articleComment;
    }

    /**
     * 文章最后修改时间
     */
    public Date getArticleUpdatetime() {
        return articleUpdatetime;
    }

    /**
     * 文章最后修改时间
     */
    public void setArticleUpdatetime(Date articleUpdatetime) {
        this.articleUpdatetime = articleUpdatetime;
    }

    /**
     * 文章路径
     */
    public String getArticleUrl() {
        return articleUrl;
    }

    /**
     * 文章路径
     */
    public void setArticleUrl(String articleUrl) {
        this.articleUrl = articleUrl;
    }

    /**
     * 访问量统计
     */
    public Long getArticleViews() {
        return articleViews;
    }

    /**
     * 访问量统计
     */
    public void setArticleViews(Long articleViews) {
        this.articleViews = articleViews;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BlogArticle other = (BlogArticle) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getArticleContent() == null ? other.getArticleContent() == null : this.getArticleContent().equals(other.getArticleContent()))
            && (this.getArticleContentMd() == null ? other.getArticleContentMd() == null : this.getArticleContentMd().equals(other.getArticleContentMd()))
            && (this.getArticleNewstime() == null ? other.getArticleNewstime() == null : this.getArticleNewstime().equals(other.getArticleNewstime()))
            && (this.getArticleStatus() == null ? other.getArticleStatus() == null : this.getArticleStatus().equals(other.getArticleStatus()))
            && (this.getArticleSummary() == null ? other.getArticleSummary() == null : this.getArticleSummary().equals(other.getArticleSummary()))
            && (this.getArticleThumbnail() == null ? other.getArticleThumbnail() == null : this.getArticleThumbnail().equals(other.getArticleThumbnail()))
            && (this.getArticleTitle() == null ? other.getArticleTitle() == null : this.getArticleTitle().equals(other.getArticleTitle()))
            && (this.getArticleType() == null ? other.getArticleType() == null : this.getArticleType().equals(other.getArticleType()))
            && (this.getArticlePost() == null ? other.getArticlePost() == null : this.getArticlePost().equals(other.getArticlePost()))
            && (this.getArticleComment() == null ? other.getArticleComment() == null : this.getArticleComment().equals(other.getArticleComment()))
            && (this.getArticleUpdatetime() == null ? other.getArticleUpdatetime() == null : this.getArticleUpdatetime().equals(other.getArticleUpdatetime()))
            && (this.getArticleUrl() == null ? other.getArticleUrl() == null : this.getArticleUrl().equals(other.getArticleUrl()))
            && (this.getArticleViews() == null ? other.getArticleViews() == null : this.getArticleViews().equals(other.getArticleViews()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getArticleContent() == null) ? 0 : getArticleContent().hashCode());
        result = prime * result + ((getArticleContentMd() == null) ? 0 : getArticleContentMd().hashCode());
        result = prime * result + ((getArticleNewstime() == null) ? 0 : getArticleNewstime().hashCode());
        result = prime * result + ((getArticleStatus() == null) ? 0 : getArticleStatus().hashCode());
        result = prime * result + ((getArticleSummary() == null) ? 0 : getArticleSummary().hashCode());
        result = prime * result + ((getArticleThumbnail() == null) ? 0 : getArticleThumbnail().hashCode());
        result = prime * result + ((getArticleTitle() == null) ? 0 : getArticleTitle().hashCode());
        result = prime * result + ((getArticleType() == null) ? 0 : getArticleType().hashCode());
        result = prime * result + ((getArticlePost() == null) ? 0 : getArticlePost().hashCode());
        result = prime * result + ((getArticleComment() == null) ? 0 : getArticleComment().hashCode());
        result = prime * result + ((getArticleUpdatetime() == null) ? 0 : getArticleUpdatetime().hashCode());
        result = prime * result + ((getArticleUrl() == null) ? 0 : getArticleUrl().hashCode());
        result = prime * result + ((getArticleViews() == null) ? 0 : getArticleViews().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", articleContent=").append(articleContent);
        sb.append(", articleContentMd=").append(articleContentMd);
        sb.append(", articleNewstime=").append(articleNewstime);
        sb.append(", articleStatus=").append(articleStatus);
        sb.append(", articleSummary=").append(articleSummary);
        sb.append(", articleThumbnail=").append(articleThumbnail);
        sb.append(", articleTitle=").append(articleTitle);
        sb.append(", articleType=").append(articleType);
        sb.append(", articlePost=").append(articlePost);
        sb.append(", articleComment=").append(articleComment);
        sb.append(", articleUpdatetime=").append(articleUpdatetime);
        sb.append(", articleUrl=").append(articleUrl);
        sb.append(", articleViews=").append(articleViews);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}